﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayCityCity2dTouchManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.City.City2dTouchManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 5, 1, 1);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Destroy", _m_Destroy);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwitchTouchInput", _m_SwitchTouchInput);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTouchInputState", _m_GetTouchInputState);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "On_ScrollEnd", _m_On_ScrollEnd);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "touchInputController", _g_get_touchInputController);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "touchInputController", _s_set_touchInputController);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 15, 0, 0);
			
			
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchStart", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnTouchStart);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchUp", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnTouchUp);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_On_SimpleTap", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_On_SimpleTap);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDragStart", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDragStart);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDoubleDragStart", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDoubleDragStart);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDrag", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDrag);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDoubleDrag", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDoubleDrag);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDragEnd", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDragEnd);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDoubleDragEnd", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDoubleDragEnd);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnDoubleTap", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnDoubleTap);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnTouchDown", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnTouchDown);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnFingerUpLastOne", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnFingerUpLastOne);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnScrollEnd", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnScrollEnd);
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUAFunctionName_OnInertiaOver", Yoozoo.Gameplay.City.City2dTouchManager.LUAFunctionName_OnInertiaOver);
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.City.City2dTouchManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.City.City2dTouchManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.City.City2dTouchManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.City.City2dTouchManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    BitBenderGames.MobileTouchCamera _mobileTouchCamera = (BitBenderGames.MobileTouchCamera)translator.GetObject(L, 2, typeof(BitBenderGames.MobileTouchCamera));
                    
                    gen_to_be_invoked.Initialize( _mobileTouchCamera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Destroy(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Destroy(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SwitchTouchInput(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    bool _active = LuaAPI.lua_toboolean(L, 2);
                    
                    gen_to_be_invoked.SwitchTouchInput( _active );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetTouchInputState(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetTouchInputState(  );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_On_ScrollEnd(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.On_ScrollEnd(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_touchInputController(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.touchInputController);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_touchInputController(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.City.City2dTouchManager gen_to_be_invoked = (Yoozoo.Gameplay.City.City2dTouchManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.touchInputController = (BitBenderGames.TouchInputController)translator.GetObject(L, 2, typeof(BitBenderGames.TouchInputController));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
